home *** CD-ROM | disk | FTP | other *** search
- Path: news.infinet.com!day-p041
- From: jmonnin@infinet.com (Joe Monnin)
- Newsgroups: comp.lang.c
- Subject: Interprocess Communication in Linux
- Date: Thu, 25 Jan 96 05:59:34 GMT
- Organization: InfiNet
- Distribution: world
- Message-ID: <4e768q$sfc@news1.infinet.com>
- NNTP-Posting-Host: day-p041.infinet.com
- Keywords: ipc Linux msgsnd
- X-Newsreader: News Xpress Version 1.0 Beta #2
-
- I'm having a problem sending a message from one process to another in Linux. My function reads something like:
-
-
- void function{
- struct msgbuf message;
-
- msgid=1;
- result=msgsnd(msgid,&message,MSGMAX,IPC_NOWAIT);
- }
-
- the functions returns a -1 indiacting an error, and errno is set to EFAULT which my documention says means "address
- pointed to by message is not accessable." Why isn't it accessable? It would be to any other function.
-
-